package com.damuzee.system.admin.domain;

import javax.persistence.Column;
import javax.persistence.Table;

import org.mybatis.sql.BaseBean;
import org.mybatis.sql.annotation.BaseResultMap;

import com.damuzee.system.admin.persistence.EmpUserMapper;




/**
 * auto generator
 */
 
@Table(name = "sys_emp_user")
@BaseResultMap(name=EmpUserMapper.class)
public class EmpUser extends BaseBean implements java.io.Serializable {
 
 
  	@Column(name = "id")
  	private Integer id ;									//ID
  	@Column(name = "user_name")
  	private String userName ;								//用户名
  	@Column(name = "user_pwd")
  	private String userPwd ;								//密码
  	@Column(name = "entry_time")
  	private String entryTime ;								//入职日期
  	@Column(name = "real_name")
  	private String realName ;								//真实姓名
  	@Column(name = "user_indenty")
  	private String userIndenty ;							//身份证
  	@Column(name = "birthday")
  	private String birthday ;								//生日
  	@Column(name = "telephone")
  	private String telephone ;								//电话
  	@Column(name = "email")
  	private String email ;									//邮箱
  	@Column(name = "perm_type")							
  	private Integer permType;								//权限:0-只读，1可写，2-可修改  管理员-审核-职员

  	public EmpUser(){}
  	
  	public EmpUser(int id){
  		this.id = id ;
  	}
  	
  	public boolean isReadOnly(){
  		if (permType != null && permType == 0) {
			return true ;
		}
  		return false ;
  	}

	public Integer getId() {
		return this.id;
	}

	public void setId( Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return this.userName;
	}

	public void setUserName( String userName) {
		this.userName = userName;
	}
	public String getUserPwd() {
		return this.userPwd;
	}

	public void setUserPwd( String userPwd) {
		this.userPwd = userPwd;
	}
	public String getEntryTime() {
		return this.entryTime;
	}

	public void setEntryTime( String entryTime) {
		this.entryTime = entryTime;
	}
	public String getRealName() {
		return this.realName;
	}

	public void setRealName( String realName) {
		this.realName = realName;
	}
	public String getUserIndenty() {
		return this.userIndenty;
	}

	public void setUserIndenty( String userIndenty) {
		this.userIndenty = userIndenty;
	}
	public String getBirthday() {
		return this.birthday;
	}

	public void setBirthday( String birthday) {
		this.birthday = birthday;
	}
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone( String telephone) {
		this.telephone = telephone;
	}
	public String getEmail() {
		return this.email;
	}

	public void setEmail( String email) {
		this.email = email;
	}

	public Integer getPermType() {
		return permType;
	}

	public void setPermType(Integer permType) {
		this.permType = permType;
	}
	
	
}